﻿using System;

using DevExpress.Xpo;

using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.Data.Filtering;

namespace SpeedSCM.Module
{
    [NavigationItem("基本信息")]
    [ImageName("BO_Sale_v92")]
    [DefaultProperty("名称")]
    public class 其他收入类型 : BaseObject
    {
        public 其他收入类型(Session session)
            : base(session)
        {

        }
        private string _名称;
        [Custom("Caption", "名称")]
        [RuleRequiredField(null, DefaultContexts.Save, "名称必须不能为空")]
        [RuleUniqueValue(null, DefaultContexts.Save, "名称已经在系统中存在")]
        public string 名称
        {
            get { return _名称; }
            set { SetPropertyValue<string>("名称", ref _名称, value); }
        }
        private string _编号;
        [Custom("Caption", "编号")]
        [RuleRequiredField(null, DefaultContexts.Save, "编号不能为空")]
        public string 编号
        {
            get { return _编号; }
            set { SetPropertyValue<string>("编号", ref _编号, value); }
        }
        private string _简称;
        [Custom("Caption", "简称")]
        public string 简称
        {
            get { return _简称; }
            set { SetPropertyValue<string>("简称", ref _简称, value); }
        }
        private string _备注;
        [Custom("Caption", "备注")]
        [Size(500)]
        public string 备注
        {
            get { return _备注; }
            set { SetPropertyValue<string>("备注", ref _备注, value); }
        }

    }
}
